package com.his.his_system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**
 * 历史病历
 * @TableName dzm_his_care_history
 */
@TableName(value ="dzm_his_care_history")
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class DzmHisCareHistory implements Serializable {
    /**
     *
     */
    @TableId(type = IdType.AUTO)
    private Object id;

    /**
     * 医院id
     */
    private Object hospitalId;

    /**
     * 医生id
     */
    private Object doctorId;

    /**
     * 患者id
     */
    private Object patientId;

    /**
     * 科室id
     */
    private Object departmentId;

    /**
     * 接诊类型：0初诊，1复诊，2急诊
     */
    private Integer typeId;

    /**
     * 是否传染，0否，1是
     */
    private Integer isContagious;

    /**
     * 发病日期
     */
    private Date caseDate;

    /**
     * 插入时间，php时间戳
     */
    private Object addtime;

    /**
     * 诊断编号
     */
    private String caseCode;

    /**
     * 主诉
     */
    private String caseTitle;

    /**
     * 诊断信息
     */
    private String caseResult;

    /**
     * 医生建议
     */
    private String doctorTips;

    /**
     * 备注
     */
    private String memo;

    /**
     * 医生表
     */
    @TableField(exist = false)
    private DzmHisDoctor dzmHisDoctor;

    /**
     * 科室表
     */
    @TableField(exist = false)
    private  DzmHisDepartment dzmHisDepartment;

    @TableField(exist = false)
    private  DzmHisHospital dzmHisHospital;
}
